import {formatMessage} from './intl';
import {Routes} from 'Shared/utils/routeManager';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    assistAdd: {
        url: '/assistAdd',
        title: formatMessage({
            id: 'routes.assistAdd',
            defaultMessage: '代新增'
        }),
        format: '/assistAdd'
    },
    assistUpdate: {
        url: '/:id/assistUpdate',
        title: formatMessage({
            id: 'routes.assistUpdate',
            defaultMessage: '代编辑'
        }),
        format: '/{0}/assistUpdate'
    },
    import: {
        url: '/import',
        title: formatMessage({
            id: 'routes.import',
            defaultMessage: '导入'
        }),
        format: '/import'
    },
    return: {
        url: '/:id/return',
        title: formatMessage({
            id: 'routes.return',
            defaultMessage: '退回'
        }),
        format: '/{0}/return'
    },
});
export default routes;
